/**
 * <p>Title: Cell Class</p>
 * <p>Description: CS 343 Project</p>
 * @author Quintin Stolpe
 * @email quintin.stolpe@my.uwrf.edu
 * @date Dec 3 2012
*/

package maze;

import java.util.Vector;
import java.util.Enumeration;

// Edge constructor
public class Edge
{
	Vector segmentsVector = new Vector();
	Node startNode = null;
	Node endNode = null;
	
	public void addSegment(Segment seg)
	{
		segmentsVector.add(seg);
	}
	
	public boolean contains(int x, int y)
	{
		Enumeration<Segment> en=segmentsVector.elements();
		while (en.hasMoreElements())
		{
			Segment seg = (Segment)(en.nextElement());
			if (seg.contains(x,y))
			{
				return true;
			}
		}
		return false;
	}
	
	public static void main(String[] args)
	{
	}
}
